﻿using System;
using System.Linq.Expressions;
using System.Web.Mvc;
using IterationLife.Extensions.Dtos;
using IterationLife.Extensions.Enums;

namespace IterationLife.Extensions.EasyUI.Commons {
    /// <summary>
    /// 附件控件
    /// </summary>
    public interface IAttachmentControl<T> {
        /// <summary>
        /// 单附件
        /// </summary>
        MvcHtmlString SingleEdit<TProperty>( Expression<Func<T, TProperty>> expression, Resources resources, FileType type = FileType.Picture);
        /// <summary>
        /// 单附件
        /// </summary>
        MvcHtmlString SingleEdit(string labelName, Resources resources, FileType type = FileType.Picture);
        /// <summary>
        /// 单附件预览
        /// </summary>
        MvcHtmlString SinglePreview(Resources resources);
    }
}
